package com.taikang.hmp.hbusiness.diabetes.measure.pressure.service;
/** 
 * 血压话术
 * author:qrp
 * time:2015年8月11日 上午10:17:51
 */
public class PressureUtil {
	
	/**
	 * 根据收缩压取得相应的话术
	 * @param param 收缩压 （单位：mmHg）
	 * @return 0:正常血压;1:血压偏高;2:1级高血压;3:2级高血压;4:3级高血压;5:血压低了
	 */
	public static String getPressureWords(int paramh,int paraml){
		String result = "";
		if (180 <= paramh || paraml>=110){
			result = "4";
		}else if((160 <= paramh && paramh <= 179) || (paraml>=100 && paraml<=109)){
			result = "3";
		}else if((140 <= paramh && paramh <= 159) || (paraml>=90 && paraml<=99)){
			result = "2";
		}else if(90 >= paramh || paraml<=60){
			result = "5";
		}else if((120 <= paramh && paramh <= 139) || (paraml>=80 && paraml<=89) ){
			result = "1";
		}else if(91 <= paramh && paramh <= 119 && paraml>=61 && paraml<=79) {
			result = "0";
		}
		return result;
	}

}
